module.exports = {
  apps: [{
    name: 'gogo_server',
    cwd: './',
    script: 'bin/www',
    watch: true,
    ignore_watch: ["node_modules", "logs"],
    exec_mode: "cluster_mode",
    error_file: "./logs/pm2-err.log",
    out_file: "./logs/pm2-out.log",
    merge_logs: true,
    log_date_format: "YYYY-MM-DD HH:mm:ss",
    autorestart: true,
    env_dev: {
      NODE_ENV: 'development',
      REMOTE_ADDR: 'development...'
    },
    env_prod: {
      NODE_ENV: 'production',
      REMOTE_ADDR: 'production...'
    }
  }]
};
